package com.hwtx.form.domain.def.meta;

import lombok.Getter;

@Getter
public enum Layout {
    OneColumn(1),
    TwoColumns(2),
    ThreeColumns(3),
    FourColumns(4);
    private final int value;

    Layout(int value) {
        this.value = value;
    }

    public static Layout valueOf(int value) {
        for (Layout layout : values()) {
            if (layout.value == value) {
                return layout;
            }
        }
        throw new IllegalArgumentException("No matching enum for " + value);

    }
}
